package com.weipai.education.model;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
@Data
@Accessors(chain = true)
public class Exchange {
    private Integer id;

    private Date createTime;

    private Date updateTime;

    private Integer initUserId;

    @NotNull(message = "产品id不能为空")
    private Integer productId;

    @NotNull(message = "产品数量不能为空")
    private Integer productNumber;

    private String orderNumber;

    private Integer status;

    private Integer auditUserId;

    private String province;

    private String city;

    private String county;

    private String address;

    private String expressCompany;

    private String expressNumber;

    private String name;

    private String mobile;

    @NotNull(message = "订单类型不能为空")
    private Integer orderType;

    @NotBlank(message = "采购订单号不能为空")
    private String purchaseNumber;

    private BigDecimal money;

    private String record;
    
}